import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

Vue.config.productionTip = false

//引入Header,Tabbar组件,注册成全局组件
import Header from './components/Header'
import Tabbar from './components/Tabbar'
import Cart from './components/Cart'
Vue.component('Header', Header);
Vue.component('Tabbar', Tabbar);
Vue.component('Cart', Cart);

//引入mock.js 让接口生效
import './mock/mock'

//引入mint-ui
import mintui from 'mint-ui'

//引入mint-ui的样式
import 'mint-ui/lib/style.css'

//将mintui的组件应用到vue实例
Vue.use(mintui);

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
